
/**
 * Implementation of 3 rounds of throw five  dices
 * 
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class RUNDE
{
    // instance variables - replace the example below with your own
    private WUERFEL[] wuerfel;
    
    
    int x;
    

    /**
     * Constructor for objects of class RUNDE
     */
    public RUNDE()
    {
        wuerfel = new WUERFEL[5];
        for (int i=0; i<5; i = i+1)
        {
            wuerfel[i] = new WUERFEL();
            wuerfel[i].wuerfeln();
            
        }
        
        
        
    }
    
    public RUNDE(int in)
    {
        x = in;
    }

    /**
     * An example of a method - replace this comment with your own
     * 
     * @param  y   a sample parameter for a method
     * @return     the sum of x and y 
     */
    public void ErgebnisZeigen()
    {
        for (int i=0; i<5; i = i+1)
        {
            System.out.println("Wuerfel " + i + ": " + wuerfel[i].WertGeben());
           
            
        }
    }
}
